Skip to content

fix: restore responsive LiquidGlassSlider interaction - #7

Merged
hoshiizumiya merged 61 commits into
masterfrom
fix/controls
Sep 18, 2026
Merged

hoshiizumiya merged 61 commits into
masterfrom
fix/controls

Conversation

@hoshiizumiya

@hoshiizumiya hoshiizumiya commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • streamline LiquidGlassSlider so high-frequency Value updates only touch existing Composition geometry
  • remove template-tree walking/resource/brush churn from the Slider layout hot path
  • preserve the native 18x18 WinUI semantic Thumb while mapping the 90x60 glass lens from the real native Thumb center in track coordinates
  • restore Kube-style active optics: approximately 0.4 -> 0.9 refraction (2.25x) while reducing active tint so the refracted backdrop remains visible
  • narrow press/release optical updates to the four properties that actually change: refraction, tint, highlight, and inner shadow
  • add dedicated WinUI.LiquidGlass architecture/control documentation and surface the second NuGet package in both READMEs

Slider architecture

The native Thumb remains responsible for WinUI value/layout/input/UIA behavior. A lightweight post-layout correction maps its actual center into track coordinates for the oversized glass lens. LayoutUpdated no longer walks the XAML tree, allocates brushes, rewrites resources, or recreates the progress visual.

The normalized value callback updates only the existing Composition progress geometry. The lens correction is performed after WinUI's native layout because the visual 54-DIP resting footprint intentionally differs from the 18-DIP semantic Thumb.

Validation focus

  • pointer-down visual response latency
  • drag smoothness under high-frequency Value updates
  • glass/refraction visibility at rest and while pressed
  • 0/50/100 endpoint alignment and full-track progress fill
  • horizontal/vertical, RTL, and IsDirectionReversed
  • package-consumer C++ build and optimized C++/WinRT module configuration remain unchanged

[ci skip]
@hoshiizumiya
hoshiizumiya merged commit 336d92c into master Sep 18, 2026
2 checks passed
@hoshiizumiya
hoshiizumiya deleted the fix/controls branch September 19, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant